<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Insert title here</title>
<script type="text/javascript" src="js/jquery-1.11.0.min.js"></script>

<script type="text/javascript">

function test() {
/* 	 var string1='{"data":"1799","id":1,"name":"设备1-A","status":"开启"}';
	alert(string1)
	var u=JSON.parse(string1);
	alert(u.data)
	
	var q=JSON.stringify(u);
	alert(q)  */
	
	$.ajax({
		type:'post',
		url:'${pageContext.request.contextPath}/elecStatus/updateData.action',
		success:function(){
			
		}
		
	})
	
}
</script>
</head>
<body>
<button onclick="test()">Test</button>
</body>
</html>